﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HCQ2_Model.VRDD.InputDto._20220620
{
    /// <summary>
    /// 保存店铺点赞
    /// </summary>
    public class InputSaveStoreStar
    {
        /// <summary>
        /// 登录用户编码
        /// </summary>
        [Required(ErrorMessage = "userid：用户编码必传项！")]
        public string userid { get; set; }
        /// <summary>
        /// 合伙人或创始人编码
        /// </summary>
        [Required(ErrorMessage = "ownserID：合伙人或创始人用户编码必传项！")]
        public string ownserID { get; set; }
        /// <summary>
        /// 店铺ID
        /// </summary>
        [Required]
        [RegularExpression("^([1-9][0-9]*)$", ErrorMessage = "folderID：店铺ID必传项！")]//大于0正则表达式
        public int folderID { get; set; }
        /// <summary>
        /// 0=取消关注，1=加关注
        /// </summary>
        [Required]
        [RegularExpression("^([0,1])$", ErrorMessage = "请正确输状态【0，1】！")]
        public int status { get; set; }
    }
}
